package Task;

/**
 * 实现 Runnable, 重写 run, 使用匿名内部类
 */
public class Demo6 {
    public static void main(String[] args) {
        Runnable runnable=new Runnable() {
            @Override
            public void run() {
                System.out.println(4444);
            }
        };
        Thread thread=new Thread(runnable);
        thread.start();
    }
}
